//
//  DataBaseHandler.h
//  UI19_homework
//
//  Created by dllo on 16/1/13.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>


@class EveryDayModel;

@interface DataBaseHandler : NSObject

+ (instancetype)shareDataBaseHandler;

- (void)open;

- (void)createTable;

- (void)insertModelWriteRead:(EveryDayModel *)model;

- (void)updataModel:(EveryDayModel *)model forNumber:(NSInteger)number;

- (void)deleteWithTitle:(NSString *) title;

- (NSArray *)selectForTitle:(NSString *) title;

- (NSMutableArray *)select;

- (void)dropTable;

- (void)closeTable;


@end
